import request from '@/utils/request'
import downloadRequest from '@/utils/downloadRequest'

// 查询列表数据
export function load(data) {
  return request({
    url: '/app/ap_user/list_user_info',
    method: 'post',
    data
  })
}

// 新增
export function saveUser(data) {
  return request({
    url: '/app/ap_user/save_user',
    method: 'post',
    data
  })
}

// 修改
export function updateUser(data) {
  return request({
    url: '/app/ap_user/update_user',
    method: 'post',
    data
  })
}

// 导出excel
export function downExcel(data) {
  return downloadRequest({
    url: '/app/ap_user/export',
    method: 'post',
    responseType: 'blob',
    data
  })
}
